﻿using System;
using System.Collections.Generic;
using Medianamik.Core;
using Medianamik.UI.Web.Shop.Data.Interfaces;

namespace Medianamik.UI.Web.Shop.Data.Dto
{
    public class ShoppingCartItemWithModels<TModel> : MedianamikDTO, IShoppingCartItemWithModels<TModel>
        where TModel : Interfaces.IModel
    {
        public string Name { get; set; }
        public string ShoppingCartItemId { get; set; }

        public Guid? ShoppingCart
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        public Guid? Product { get; set; }

        public int? Quantity { get; set; }
        public IList<TModel> Models { get; set; }
        public double Price { get; set; }
        public double SubTotal
        {
            get { return Quantity.Value * Price; }
            set { throw new NotImplementedException(); }
        }
        public string SmallImage { get; set; }
        public double Weight { get; set; }
        public double Length { get; set; }
        public double Height { get; set; }
        public double Width { get; set; }
    }

    public class ShoppingCartItemWithModels : ShoppingCartItemWithModels<Model>
    {
    }
}